<?php

namespace app\api\validate;

use think\Validate;

class Withdraw extends Validate
{
    protected $rule = [
        ['id',        'require|number|>:0',         '套餐不存在|套餐不存在|套餐不存在'],
        ['method',    'require|number|in:0,1,2',        '提现方式有误|提现方式有误|提现方式有误'],
        ['paypwd',    'number|length:6',            '提现密码错误|提现密码错误'],
        ['code',      'number|length:6',            '验证码错误|验证码错误'],
    ];

    protected $scene = [
        //'submit'  => ['id', 'method', 'paypwd'],
        'submit'  => ['id', 'method', 'code', 'paypwd'],
    ];
}
